﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    public class NoteBLL : BaseBLL<Note>
    {
        public Note entity = new Note();
        NoteDAO dao = new NoteDAO();
        public override Note GetModel()
        {
            return entity;
        }
        /// <summary>
        /// 根据信息状态查询任务信息
        /// </summary>
        /// <param name="page"></param>
        /// <param name="pagesize"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        public IList<Note> GetListPaging(int page, int pagesize, int state)
        {
            return dao.GetListPaging(page,pagesize,state);
        }

        /// <summary>
        /// 根据发布信息用户和状态查询任务信息条目数
        /// </summary>
        /// <param name="state"></param>
        /// <returns></returns>
        public int GetListPaging(int state)
        {
            return dao.GetListPaging(state);
        }
        /// <summary>
        /// 查询出最新的一条会签参与人中包含登录用户Note信息
        /// </summary>
        /// <param name="worker"></param>
        /// <returns></returns>
        public Note GetNodeByWorker(int worker)
        {
            return dao.GetNodeByWorker(worker);
        }
    }
}
